//////////////////////////////////////////////////////////////////////////
//	File: CLifeDrain.h
//
//	Author: Steven Seufert
//	Date:	January 13, 2012
//
//	Purpose: To define the Life Drain class spell 
/////////////////////////////////////////////////////////////////////////

#ifndef	CLIFE_DRAIN_H
#define CLIFE_DRAIN_H

#include "CSpellBase.h"
#include "Messaging\IListener.h"

class CPlayer;

class CLifeDrain : public CSpellBase, public IListener
{
private:
	int		m_nSoundID;			//cast 
	float	m_fAccruedTime;		// How long since last damaging/healing?
	float	m_fRate;			// How often does it do damage/heal?
	int		m_nRange;			// How far the spell goes?
	// images 
	// animations
public:
	// constructor
	CLifeDrain();

	// destructor
	~CLifeDrain();

	void Cast(CPlayer* caster);

	void Update(float fElapsedTime);
	void Render(void);
	bool CheckCollision(IBaseInterface * pBase );

	void HandleEvent(CEvent* pEvent);
};
#endif